/**
 * 消息业务操作
 */

const messageModel = require('../models/message');
const messageCode = require('../codes/message');

const message = {

	/**
	 * 获取用户所有消息
	 * @param  {string}
	 * @return {object|null}     查找结果
	 */
	async getAllMessage(formData) {
		let result = await messageModel.getAllMessage(formData);
		return result;
	},
};

module.exports = message;